<?php


/*
 * Created on 2009/03/21
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

ini_set('display_errors', 0);

/**
 * 
 * SYSTEM SETTINGS
 * 
 */

// the name of the template directory inside templates
define('TEMPLATE_DIR', 'default');

// include adult content
define('ADULT_CONTENT', true);

// limit contents to this category
define('VERTICAL_CATEGORY_ID', 97);

#soap API
define('API_USERID', 	'89753');
define('API_USERPASS', 	'42bb0b4fb2c5131b90729d854b16e0c10def6ca3a9e170cf');
define('API_USERTYPE', 	'affiliate');

define('API_WSDL', 		'http://api.productserve.com/v2/ProductServeService?wsdl');
define('API_NAMESPACE', 'http://api.productserve.com/');

define('API_SOAP_ERRORS_REDIRECT_URL', 	'http://www.shopwindow.com/index.php?a='.API_USERID);
define('API_SOAP_ERRORS_PRINT', true);
define('API_SOAP_DEBUG_PRINT', false);

#Home Path
if ( !defined('HOME_PATH') ) {
	define('HOME_PATH', dirname(__FILE__).'/');
}

#Home URL
if (!defined('HOME_URL')) {
	$dirs = explode('/', $_SERVER['SCRIPT_NAME']);
	$homeURL = 'http://' . $_SERVER['HTTP_HOST'];
	for ($i = 0; $i < count($dirs) -1; $i++) {
		$homeURL .= $dirs[$i].'/';
	}
	define('HOME_URL', $homeURL);
}

# Smarty cache unique id
$aRequestParams = array_merge($_GET, $_POST);
unset($aRequestParams['search_x']);
unset($aRequestParams['search_y']);
define( 'SMARTY_CACHE_ID', md5( serialize($aRequestParams) ) );

#Template Page Names
define('P_INDEX', HOME_URL.'index.php');

#API Type
define('APITYPES_AFFILIATEWINDOW', 'affiliatewindow');


/**
 * 
 * AUTO SYSTEM SETTINGS
 * Do NOT edit below this line
 * 
 */

# Soap extra params
if ( API_SOAP_DEBUG_PRINT === true ) {
	define('API_SOAP_TRACE', true);	
}
else {
	define('API_SOAP_TRACE', false);	
}


?>
